 public static int[] corpFlightBookings(int[][] bookings, int n) {
        int[] answer=new int[n];
        for(int i=0;i<n;i++){
            answer[i]=0;
        }
        for(int i=0;i<bookings.length;i++){
            int l=bookings[i][0];
            int r=bookings[i][1];
            for(int j=l;j<=r;j++){
                answer[j-1]+=bookings[i][2];
            }
        }
        return answer;
    }